Skip to content

Conversation

@ronag
Copy link
Member

@ronag ronag commented Jul 4, 2020

Cleans up Readable.wrap and also ensures destroy is called for certain events.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the stream Issues and PRs related to the stream subsystem. label Jul 4, 2020
@ronag ronag added the semver-major PRs that contain breaking changes and should be released in the next major version. label Jul 4, 2020
@ronag
Copy link
Member Author

ronag commented Jul 4, 2020

@nodejs/streams @mafintosh

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Readable should already handle all of the above. Not sure why this was put here. Legacy?

@ronag ronag force-pushed the readable-wrap branch 7 times, most recently from 8c12016 to 39ef8e3 Compare July 4, 2020 17:10
Cleans up Readable.wrap and also ensures destroy
is called for certain events.
stream.on('resume', () => {
// TODO(ronag): this.resume()?
this.emit('resume');
});
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little unsure what to do exactly when the wrapped stream emits pause and resume. I don't think it's relevant?

@ronag ronag added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jul 5, 2020
@ronag ronag requested review from jasnell and mcollina July 5, 2020 17:10
@nodejs-github-bot
Copy link
Collaborator

@ronag ronag requested review from lpinca and mafintosh July 5, 2020 17:10
@jasnell
Copy link
Member

jasnell commented Jul 7, 2020

LGTM but would really like @mcollina to sign off before it lands

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Jul 7, 2020

@ronag ronag mentioned this pull request Jul 8, 2020
25 tasks
@ronag
Copy link
Member Author

ronag commented Jul 11, 2020

ronag added a commit that referenced this pull request Jul 11, 2020
Cleans up Readable.wrap and also ensures destroy
is called for certain events.

PR-URL: #34204
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@ronag
Copy link
Member Author

ronag commented Jul 11, 2020

Landed in 4e3f6f3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. semver-major PRs that contain breaking changes and should be released in the next major version. stream Issues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants